package exception;

import enums.ResultCodeEnum;

/**
 * @program: pdd
 * @description: jwt验证异常
 * @create: 2020-11-15 13:42
 **/
public class AuthenticateException extends RuntimeException{
    private ResultCodeEnum serverEnum;
    public AuthenticateException(ResultCodeEnum serverEnum) {
        super(serverEnum.getMsg());
        this.serverEnum=serverEnum;
    }
    public ResultCodeEnum getResultEnum() {
        return serverEnum;
    }
}